package com.cg.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "stock-server")
public interface StockServer {

    @GetMapping("stock/reduceStockNum/{stockId}/{stockType}")
    void reduceStockNum(@PathVariable("stockId") Integer stockId, @PathVariable("stockType") Integer stockType);

}
